<?php
session_start();
if($_SESSION['islogin'] != 1){
	echo '<script>alert("请先登陆");window.location.href="login.php"</script>';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>首页</title>
</head>
<body>
	<h1>欢迎回来</h1><p><?php echo $_SESSION['uname'] ?></p>
	<a href="logout.php">退出登录</a>
</body>
</html>